package com.supermarket.manage.provider.ucenter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.manage.common.pojo.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-01 15:53
 **/
@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    /**
     * 批量添加角色权限关系
     *
     * @param roleId
     * @param permissionIds
     * @return
     */
    int insert(@Param("roleId") Long roleId, @Param("permissionIds") List<Long> permissionIds);

}
